<?
@session_start();
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start('ob_gzhandler'); else ob_start();
require_once("includes/config.php");
require_once("includes/$datatype.php");
require('libs/Smarty.class.php');

define('ANTIHACK', true);
define('CSS', "css/");
define('JS', "js/");
define('BLOCK', "block/");
define('MODULES', "modules/");
define('TEMPLATES', "templates/");
define('INCLUDES', "includes/");
define('images', "images/");
define('var', "var/");
define("BASELINK", $baselink, true);

$smarty=new Smarty();
require(INCLUDES.'block.php'); //load function block in templates;
require(INCLUDES.'php.php');
?>

